3.1.53 \(\int \sqrt {x} (a+b \text {sech}(c+d \sqrt {x})) \, dx\) [53]

Optimal. Leaf size=140 \[ \frac {2}{3} a x^{3/2}+\frac {4 b x \text {ArcTan}\left (e^{c+d \sqrt {x}}\right )}{d}-\frac {4 i b \sqrt {x} \text {PolyLog}\left (2,-i e^{c+d \sqrt {x}}\right )}{d^2}+\frac {4 i b \sqrt {x} \text {PolyLog}\left (2,i e^{c+d \sqrt {x}}\right )}{d^2}+\frac {4 i b \text {PolyLog}\left (3,-i e^{c+d \sqrt {x}}\right )}{d^3}-\frac {4 i b \text {PolyLog}\left (3,i e^{c+d \sqrt {x}}\right )}{d^3} \]

[Out]

2/3*a*x^(3/2)+4*b*x*arctan(exp(c+d*x^(1/2)))/d+4*I*b*polylog(3,-I*exp(c+d*x^(1/2)))/d^3-4*I*b*polylog(3,I*exp(
c+d*x^(1/2)))/d^3-4*I*b*polylog(2,-I*exp(c+d*x^(1/2)))*x^(1/2)/d^2+4*I*b*polylog(2,I*exp(c+d*x^(1/2)))*x^(1/2)
/d^2

________________________________________________________________________________________

Rubi [A]
time = 0.09, antiderivative size = 140, normalized size of antiderivative = 1.00, number of steps used = 10, number of rules used = 6, integrand size = 20, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.300, Rules used = {14, 5544, 4265, 2611, 2320, 6724} \begin {gather*} \frac {2}{3} a x^{3/2}+\frac {4 b x \text {ArcTan}\left (e^{c+d \sqrt {x}}\right )}{d}+\frac {4 i b \text {Li}_3\left (-i e^{c+d \sqrt {x}}\right )}{d^3}-\frac {4 i b \text {Li}_3\left (i e^{c+d \sqrt {x}}\right )}{d^3}-\frac {4 i b \sqrt {x} \text {Li}_2\left (-i e^{c+d \sqrt {x}}\right )}{d^2}+\frac {4 i b \sqrt {x} \text {Li}_2\left (i e^{c+d \sqrt {x}}\right )}{d^2} \end {gather*}

Antiderivative was successfully verified.

[In]

Int[Sqrt[x]*(a + b*Sech[c + d*Sqrt[x]]),x]

[Out]

(2*a*x^(3/2))/3 + (4*b*x*ArcTan[E^(c + d*Sqrt[x])])/d - ((4*I)*b*Sqrt[x]*PolyLog[2, (-I)*E^(c + d*Sqrt[x])])/d
^2 + ((4*I)*b*Sqrt[x]*PolyLog[2, I*E^(c + d*Sqrt[x])])/d^2 + ((4*I)*b*PolyLog[3, (-I)*E^(c + d*Sqrt[x])])/d^3
- ((4*I)*b*PolyLog[3, I*E^(c + d*Sqrt[x])])/d^3

Rule 14

Int[(u_)*((c_.)*(x_))^(m_.), x_Symbol] :> Int[ExpandIntegrand[(c*x)^m*u, x], x] /; FreeQ[{c, m}, x] && SumQ[u]
 &&  !LinearQ[u, x] &&  !MatchQ[u, (a_) + (b_.)*(v_) /; FreeQ[{a, b}, x] && InverseFunctionQ[v]]

Rule 2320

Int[u_, x_Symbol] :> With[{v = FunctionOfExponential[u, x]}, Dist[v/D[v, x], Subst[Int[FunctionOfExponentialFu
nction[u, x]/x, x], x, v], x]] /; FunctionOfExponentialQ[u, x] &&  !MatchQ[u, (w_)*((a_.)*(v_)^(n_))^(m_) /; F
reeQ[{a, m, n}, x] && IntegerQ[m*n]] &&  !MatchQ[u, E^((c_.)*((a_.) + (b_.)*x))*(F_)[v_] /; FreeQ[{a, b, c}, x
] && InverseFunctionQ[F[x]]]

Rule 2611

Int[Log[1 + (e_.)*((F_)^((c_.)*((a_.) + (b_.)*(x_))))^(n_.)]*((f_.) + (g_.)*(x_))^(m_.), x_Symbol] :> Simp[(-(
f + g*x)^m)*(PolyLog[2, (-e)*(F^(c*(a + b*x)))^n]/(b*c*n*Log[F])), x] + Dist[g*(m/(b*c*n*Log[F])), Int[(f + g*
x)^(m - 1)*PolyLog[2, (-e)*(F^(c*(a + b*x)))^n], x], x] /; FreeQ[{F, a, b, c, e, f, g, n}, x] && GtQ[m, 0]

Rule 4265

Int[csc[(e_.) + Pi*(k_.) + (Complex[0, fz_])*(f_.)*(x_)]*((c_.) + (d_.)*(x_))^(m_.), x_Symbol] :> Simp[-2*(c +
 d*x)^m*(ArcTanh[E^((-I)*e + f*fz*x)/E^(I*k*Pi)]/(f*fz*I)), x] + (-Dist[d*(m/(f*fz*I)), Int[(c + d*x)^(m - 1)*
Log[1 - E^((-I)*e + f*fz*x)/E^(I*k*Pi)], x], x] + Dist[d*(m/(f*fz*I)), Int[(c + d*x)^(m - 1)*Log[1 + E^((-I)*e
 + f*fz*x)/E^(I*k*Pi)], x], x]) /; FreeQ[{c, d, e, f, fz}, x] && IntegerQ[2*k] && IGtQ[m, 0]

Rule 5544

Int[(x_)^(m_.)*((a_.) + (b_.)*Sech[(c_.) + (d_.)*(x_)^(n_)])^(p_.), x_Symbol] :> Dist[1/n, Subst[Int[x^(Simpli
fy[(m + 1)/n] - 1)*(a + b*Sech[c + d*x])^p, x], x, x^n], x] /; FreeQ[{a, b, c, d, m, n, p}, x] && IGtQ[Simplif
y[(m + 1)/n], 0] && IntegerQ[p]

Rule 6724

Int[PolyLog[n_, (c_.)*((a_.) + (b_.)*(x_))^(p_.)]/((d_.) + (e_.)*(x_)), x_Symbol] :> Simp[PolyLog[n + 1, c*(a
+ b*x)^p]/(e*p), x] /; FreeQ[{a, b, c, d, e, n, p}, x] && EqQ[b*d, a*e]

Rubi steps

\begin {align*} \int \sqrt {x} \left (a+b \text {sech}\left (c+d \sqrt {x}\right )\right ) \, dx &=\int \left (a \sqrt {x}+b \sqrt {x} \text {sech}\left (c+d \sqrt {x}\right )\right ) \, dx\\ &=\frac {2}{3} a x^{3/2}+b \int \sqrt {x} \text {sech}\left (c+d \sqrt {x}\right ) \, dx\\ &=\frac {2}{3} a x^{3/2}+(2 b) \text {Subst}\left (\int x^2 \text {sech}(c+d x) \, dx,x,\sqrt {x}\right )\\ &=\frac {2}{3} a x^{3/2}+\frac {4 b x \tan ^{-1}\left (e^{c+d \sqrt {x}}\right )}{d}-\frac {(4 i b) \text {Subst}\left (\int x \log \left (1-i e^{c+d x}\right ) \, dx,x,\sqrt {x}\right )}{d}+\frac {(4 i b) \text {Subst}\left (\int x \log \left (1+i e^{c+d x}\right ) \, dx,x,\sqrt {x}\right )}{d}\\ &=\frac {2}{3} a x^{3/2}+\frac {4 b x \tan ^{-1}\left (e^{c+d \sqrt {x}}\right )}{d}-\frac {4 i b \sqrt {x} \text {Li}_2\left (-i e^{c+d \sqrt {x}}\right )}{d^2}+\frac {4 i b \sqrt {x} \text {Li}_2\left (i e^{c+d \sqrt {x}}\right )}{d^2}+\frac {(4 i b) \text {Subst}\left (\int \text {Li}_2\left (-i e^{c+d x}\right ) \, dx,x,\sqrt {x}\right )}{d^2}-\frac {(4 i b) \text {Subst}\left (\int \text {Li}_2\left (i e^{c+d x}\right ) \, dx,x,\sqrt {x}\right )}{d^2}\\ &=\frac {2}{3} a x^{3/2}+\frac {4 b x \tan ^{-1}\left (e^{c+d \sqrt {x}}\right )}{d}-\frac {4 i b \sqrt {x} \text {Li}_2\left (-i e^{c+d \sqrt {x}}\right )}{d^2}+\frac {4 i b \sqrt {x} \text {Li}_2\left (i e^{c+d \sqrt {x}}\right )}{d^2}+\frac {(4 i b) \text {Subst}\left (\int \frac {\text {Li}_2(-i x)}{x} \, dx,x,e^{c+d \sqrt {x}}\right )}{d^3}-\frac {(4 i b) \text {Subst}\left (\int \frac {\text {Li}_2(i x)}{x} \, dx,x,e^{c+d \sqrt {x}}\right )}{d^3}\\ &=\frac {2}{3} a x^{3/2}+\frac {4 b x \tan ^{-1}\left (e^{c+d \sqrt {x}}\right )}{d}-\frac {4 i b \sqrt {x} \text {Li}_2\left (-i e^{c+d \sqrt {x}}\right )}{d^2}+\frac {4 i b \sqrt {x} \text {Li}_2\left (i e^{c+d \sqrt {x}}\right )}{d^2}+\frac {4 i b \text {Li}_3\left (-i e^{c+d \sqrt {x}}\right )}{d^3}-\frac {4 i b \text {Li}_3\left (i e^{c+d \sqrt {x}}\right )}{d^3}\\ \end {align*}

________________________________________________________________________________________

Mathematica [A]
time = 52.46, size = 172, normalized size = 1.23 \begin {gather*} \frac {2 \left (a d^3 x^{3/2}+3 i b d^2 x \log \left (1-i e^{c+d \sqrt {x}}\right )-3 i b d^2 x \log \left (1+i e^{c+d \sqrt {x}}\right )-6 i b d \sqrt {x} \text {PolyLog}\left (2,-i e^{c+d \sqrt {x}}\right )+6 i b d \sqrt {x} \text {PolyLog}\left (2,i e^{c+d \sqrt {x}}\right )+6 i b \text {PolyLog}\left (3,-i e^{c+d \sqrt {x}}\right )-6 i b \text {PolyLog}\left (3,i e^{c+d \sqrt {x}}\right )\right )}{3 d^3} \end {gather*}

Antiderivative was successfully verified.

[In]

Integrate[Sqrt[x]*(a + b*Sech[c + d*Sqrt[x]]),x]

[Out]

(2*(a*d^3*x^(3/2) + (3*I)*b*d^2*x*Log[1 - I*E^(c + d*Sqrt[x])] - (3*I)*b*d^2*x*Log[1 + I*E^(c + d*Sqrt[x])] -
(6*I)*b*d*Sqrt[x]*PolyLog[2, (-I)*E^(c + d*Sqrt[x])] + (6*I)*b*d*Sqrt[x]*PolyLog[2, I*E^(c + d*Sqrt[x])] + (6*
I)*b*PolyLog[3, (-I)*E^(c + d*Sqrt[x])] - (6*I)*b*PolyLog[3, I*E^(c + d*Sqrt[x])]))/(3*d^3)

________________________________________________________________________________________

Maple [F]
time = 2.21, size = 0, normalized size = 0.00 \[\int \left (a +b \,\mathrm {sech}\left (c +d \sqrt {x}\right )\right ) \sqrt {x}\, dx\]

Verification of antiderivative is not currently implemented for this CAS.

[In]

int((a+b*sech(c+d*x^(1/2)))*x^(1/2),x)

[Out]

int((a+b*sech(c+d*x^(1/2)))*x^(1/2),x)

________________________________________________________________________________________

Maxima [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Failed to integrate} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((a+b*sech(c+d*x^(1/2)))*x^(1/2),x, algorithm="maxima")

[Out]

2/3*a*x^(3/2) + 2*b*integrate(sqrt(x)*e^(d*sqrt(x) + c)/(e^(2*d*sqrt(x) + 2*c) + 1), x)

________________________________________________________________________________________

Fricas [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((a+b*sech(c+d*x^(1/2)))*x^(1/2),x, algorithm="fricas")

[Out]

integral(b*sqrt(x)*sech(d*sqrt(x) + c) + a*sqrt(x), x)

________________________________________________________________________________________

Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \sqrt {x} \left (a + b \operatorname {sech}{\left (c + d \sqrt {x} \right )}\right )\, dx \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((a+b*sech(c+d*x**(1/2)))*x**(1/2),x)

[Out]

Integral(sqrt(x)*(a + b*sech(c + d*sqrt(x))), x)

________________________________________________________________________________________

Giac [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((a+b*sech(c+d*x^(1/2)))*x^(1/2),x, algorithm="giac")

[Out]

integrate((b*sech(d*sqrt(x) + c) + a)*sqrt(x), x)

________________________________________________________________________________________

Mupad [F]
time = 0.00, size = -1, normalized size = -0.01 \begin {gather*} \int \sqrt {x}\,\left (a+\frac {b}{\mathrm {cosh}\left (c+d\,\sqrt {x}\right )}\right ) \,d x \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(x^(1/2)*(a + b/cosh(c + d*x^(1/2))),x)

[Out]

int(x^(1/2)*(a + b/cosh(c + d*x^(1/2))), x)

________________________________________________________________________________________